const getEntry = require('./entry.config');
const _ = require('underscore');
const compile=require('../src/index')
let entrys = getEntry(compile.compileList, 'src', compile.superfluous);
//默认目录
entrys = { ...{ index: '\\index.js' }, ...entrys };
entrys=_.omit(entrys, "index");
let entrysKey=_.map(entrys,(a,aa)=>aa.split('/')[0]);
let entrysVal=_.map(entrys,(a,aa)=>require('../src/'+aa.split('/')[0]+'/config'));
//多入口，变量
module.exports = _.object(entrysKey,entrysVal);
